<?php
$CI =& get_instance();
$CI->load->model("Model_user", "model_user");

$limit = 4;
$offset = 0;
$keyword = $CI->input->post("specialKeyword");

$list_user = $CI->model_user->browse_special($keyword, $limit, $offset);
?>
<div class="special">
	<h2><?=lang('hot-special')?></h2>
	<p><?=lang('hot-special-desc')?></p>
	<form action="<?=$_SERVER['REQUEST_URI'];?>" id="cse-search-box" method="post" name="special_form">
		<label><?=lang('find-nail-salon')?></label><br/>
		<input type="text" name="specialKeyword" size="18" class="input-text" maxlength="32" value=""/>
		<input type="submit" name="find" value="Find"/>
	</form>
	<div class="clearfix"></div>
	<?php if(!empty($list_user)):?>
	<ul>
		<?php foreach($list_user as $item):?>
		<li>
			<h3><?=$item['company_name']?></h3>
			<p><?=$item['address']?></p>
			<p><label>Tel:</label> <?=$item['home_phone']?></p>
			<p><label>Zip code:</label> <?=$item['zipcode']?></p>
			<p><label>Special:</label> <?=$item['desc']?></p>						
		</li>
		<?php endforeach;?>
	</ul>
	<?php endif;?>
</div>